<?php
header('content-Type：application/json');
include './connDB.php';

$delete = "DELETE FROM gasdata"; 

try {
	$mres = $conn -> query($delete);
	$mcount = $mres->rowCount();
	if($mcount>0){
		$result["success"]=true;
		$result["msg"]="Delete success!";
		echo json_encode($result);
	}else{
		$result["success"]=false;
		$result["msg"]="Delete failure!!";
		echo json_encode($result);
	}
} catch (PDOException $PDOE) {
  	$result["success"]=false;
	$result["msg"]="Delete failure!";
	echo json_encode($result);
}
?>

